	
	
<style>

#map1 {
  height: 300px;
  border: 1px solid #000;
  
}
#map {
  height: 300px;
  border: 1px solid #000;
}
</style>
<div class="module clearfix">
<!-- 
	<h2>
		Welcome,
		<?php echo $member['info']->name;?>
	</h2>
	<div class="padding-bottom margin-bottom  border-bottom">
		Last login :
		<?php echo $member['info']->last_login_date;?>
		IP :
		<?php echo $member['info']->last_login_ip;?>

	</div>
 -->
	<div>

		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">
					<span class="glyphicon glyphicon-user"></span>&nbsp; Profile Update
					
				</h3>
			</div>
			<div class="panel-body">
			<?php if(!$profile['info']){?>
			<span class="pull-right" style="background: #fff8d3;"><?= $this->profile_model->get_membership($type)->name; ?></span>
			<?php }?>
			<?php if($profile['info']){?>
			<span class="pull-right" style="background: #fff8d3;"><?= $this->profile_model->get_membership($profile['info']->membership)->name; ?></span>
				<?php }?>
			
				<p class="alert text-muted small">The information you provide to us
					when opening a User Profile must be truthful and accurate. Any
					attempted or actual submission of false information will result in
					our rejection of your User Profile. It also may be treated by us as
					attempted or actual fraud and may be reported to the appropriate
					authorities.</p>
					<?php if($this->session->flashdata('message')) { 
						$show_message = $this->session->flashdata('message'); ?>
				<div class='alert alert-warning'><?= $show_message; ?> </div>
				<?php } ?>
				
					<span class="pull-right text text-danger">* marks fields are mandatory</span>
					</p>
				<div class="col-lg-9 col-lg-offset-1 clearfix">

				
					
					
					
					
					
					
			


				
					<?php if($profile['info']){?>
					<form role="form" method="POST"
						action="<?= base_url();?>member/profile/update/<?= $profile['info']->id; ?>">

						<input type="hidden" name="membership" value="<?= $profile['info']->membership; ?>">
						
						<div class="row">
							<div class="form-group col-xs-12">
								<label>Lawyer/Lawfirm Name <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('title'); ?></span>
								<input type="text" name="title" class="form-control"
									value="<?php echo $profile['info']->title;?>"
									placeholder="Enter Lawyer or Lawfirm Name">
							</div>
						</div>
						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-8">
								<label>Speciality/Expertization </label> ( CTRL+ for multiselect
								) <span class="text text-danger">*</span>
								<span class="text text-danger"> <?php echo form_error('speciality[]'); ?></span>
								<select multiple class="form-control" name="speciality[]" multiple="multiple"">
									<?php foreach($speciality as $keywords):?>


										<?php $key= $this->profile_model->get_listing_keyword($profile['info']->id,$keywords->id);?>

										<option value="<?= $keywords->id;?>"
										<?php if($key == $keywords->id){
											echo "selected=selected";
											}?>>


											<?= $keywords->name;?>

										</option>
										<?php endforeach;?>
								</select>

							</div>
						</div>

						<hr class="row">



						<div class="row">
							
							<div class="col-lg-6">
								<div id="statediv" class="input-group" onClick="getlattlong()">
									<label>State/Province <span class="text text-danger">*</span></label>
									<span class="text text-danger"> <?php echo form_error('state'); ?></span>
									<select class="form-control" name="state" id="state">
										<option value="" selected="selected">-Select-</option>
										<?php foreach($state as $state):?>
										<option value="<?= $state->id;?>"
									<?php if($state->id == $profile['info']->state){echo "selected=selected";}?>>
										<?= $state->statename;?></option>
									<?php endforeach;?>
									</select>
								</div>

							</div>
<div id="citydiv" class="form-group col-xs-6" onClick="getlattlong()">
								<label>City/Area <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('city'); ?></span>
								<select class="form-control" name="city" id="city">
									<option value="" selected="selected">-Select-</option>
									<?php foreach($city as $city):?>
									<option value="<?= $city->id;?>"<?php if($city->id == $profile['info']->city){echo "selected=selected";}?>" >
										<?= $city->cityname;?></option>
								<?php endforeach;?>
								</select>
							</div>
						</div>
						<!-- /.row -->


						<div class="row">
							
							<div class="form-group  col-xs-4">
								<label>Zip Code <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('zip'); ?></span>
								<input type="text" class="form-control"
									name="zip" placeholder="Zip Code"
									value="<?php echo $profile['info']->zip;?>">
							</div>
						</div>

						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12" onClick="getlattlong()">
								<label>Address Line 1 <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('address1'); ?></span>
								<input type="text" class="form-control"
									placeholder="First Address" name="address1" id="street_address1"
									value="<?php echo $profile['info']->address1;?>">
							</div>
						</div>

						<div class="row" onClick="getlattlong()">
							<div class="form-group  col-xs-12">
								<label>Address Line 2 </label> <input type="text"
									class="form-control" placeholder="Second Address"
									name="address2" id="street_address2"
									value="<?php echo $profile['info']->address2;?>">
							</div>
						</div>
						
						<div class="row">
						<div class="form-group col-xs-12"  id="mymap1">
									<label>Select Place</label>
									<div class="controls">
										<div id="map1"></div>
									</div>
								</div>
								</div>	
									
									<div class="row" hidden>
							<div class="form-group  col-xs-6">
								<label>Latitude </label> <input type="text" name="lat" id="lat" value="<?= $profile['info']->lat;?>" class="form-control"
									placeholder="Latitude">
							</div>
							<div class="form-group  col-xs-6">
								<label>Longitude</label> <input type="text" name="long" id="long" value="<?= $profile['info']->long;?>" class="form-control"
									placeholder="Longitude">
							</div>
						</div>

						<div class="row">
							<div class="form-group  col-xs-7">
								<label>Phone No (1) <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('phone'); ?></span>
								<input type="text" class="form-control" name="phone"
									placeholder="Enter Phone"
									value="<?php echo $profile['info']->phone1;?>">
							</div>
							<div class="form-group  col-xs-5">
								<label>Phone No (2)</label> <input type="text" class="form-control"
									placeholder="Enter Phone 2" name="phone2"
									value="<?php echo $profile['info']->phone2;?>">
							</div>
						</div>
						<div class="row">
						<div class="form-group  col-xs-5">
								<label>Fax</label> <input type="text" class="form-control"
									placeholder="Enter Fax" name="fax"
									value="<?php echo $profile['info']->fax;?>">
							</div>
						</div>
						
						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>Email ID <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('email'); ?></span>
								<input type="text" class="form-control"
									placeholder="Enter email" name="email"
									value="<?php echo $profile['info']->email;?>">
							</div>
						</div>

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>Website </label> <small>( Don't enter http:// eg.
									www.mysite.com )</small>
								
								<input type="text" class="form-control"
									placeholder="Enter Website" name="website"
									value="<?php echo $profile['info']->website;?>">
							</div>
						</div>


						<hr class="row">

						<div class="row">
							<p class="lead">Social Media</p>
							<div class="form-group  col-xs-6">
								<label>Facebook Link</label> <input type="text" name="facebook_link"
									value="<?php echo $profile['info']->facebook;?>"
									class="form-control" placeholder="Facebook">
							</div>
							<div class="form-group  col-xs-6">
								<label>Twitter Link </label><input type="text" name="twitter_link"
									value="<?php echo $profile['info']->twitter;?>"
									class="form-control" placeholder="Twitter">
							</div>
						</div>

						<div class="row">
							<div class="form-group  col-xs-6">
								<label>Google Link</label> <input type="text" name="google_link"
									value="<?php echo $profile['info']->googleplus;?>"
									class="form-control" placeholder="Google">
							</div>
							<div class="form-group  col-xs-6">
								<label>Linkedin Link </label><input type="text" name="linkedin_link"
									value="<?php echo $profile['info']->linkedin;?>"
									class="form-control" placeholder="LinkedIn">
							</div>
						</div>

						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>Language Spoken <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('language'); ?></span>
								<input type="text" name="language"
									value="<?php echo $profile['info']->language;?>"
									class="form-control" placeholder="English, French, Dutch">

							</div>
						</div>

						<div class="row">
							<div class="form-group  col-xs-8">
								<span class="text text-danger"> <?php echo form_error('payment[]'); ?></span>
								<label>Payment Methods </label>
								<!-- 
								
								<ul class="list-unstyled">
								</ul>
								 -->
								<?php if($payment){?>
								<ul class="list-unstyled">
								 <?php foreach($payment as $payment):?>
									<li class="col-xs-6"> <input type="checkbox" name="payment[]" value="<?= $payment->term_value;?>" checked> <?= $payment->term_value;?></li>
								 <?php endforeach;?>
								</ul> 
								<?php }else{?>
								<ul class="list-unstyled">
									<li class="col-xs-6"> <input type="checkbox" name="payment[]" value="Cash"> Cash</li>
									<li class="col-xs-6"> <input type="checkbox" name="payment[]" value="Credit Card"> Credit Card</li>
									<li class="col-xs-6"> <input type="checkbox" name="payment[]" value="Debit Card"> Debit Card</li>
									<li class="col-xs-6"> <input type="checkbox" name="payment[]" value="Cheque (Bank)"> Cheque (Bank)</li>
								</ul>
								<?php }?>
							</div>

							<div class="form-group  col-xs-4">
								<label>Free Consultation</label>
								<p class="small">(in Minutes. eg. 20)</p>
								<input type="text" class="form-control " name="consultation" value="<?= $profile['info']->consultation;?>" placeholder="Minutes">
							</div>
						</div>

						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>About you <span class="text text-danger">*</span></label> <small>( Leangth 150 to 1000 words )</small>
								<span class="text text-danger"> <?php echo form_error('about'); ?></span>
								<textarea name="about" class="form-control" rows="5"><?= $profile['info']->description;?></textarea>
							</div>
						</div>


						<button type="submit" class="btn btn-danger pull-right">Update
							Profile</button>
					</form>
					<?php }?>

					
					
					
<?php if(!$profile['info']){?>
					<form role="form" method="POST"
						action="<?= base_url();?>member/profile/submit/<?= $this->profile_model->get_membership($type)->id; ?>">
<input type="hidden" name="membership" value="<?= $type; ?>">
						<div class="row">
							<div class="form-group col-xs-12">
								<label>Lawyer/Lawfirm Name <span class="text text-danger">*</span></label>
								<span class="text text-danger"> <?php echo form_error('title'); ?></span>
								<input type="text" name="title" class="form-control"
									value="<?php echo set_value('title');?>"
									placeholder="Enter Lawyer or Lawfirm Name">
							</div>
						</div>
						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-8">
								<label>Speciality/Expertization </label> ( CTRL+ for multiselect
								) <span class="text text-danger">*</span>
								<span class="text text-danger"> <?php echo form_error('speciality[]'); ?></span>
								<select multiple class="form-control" name="speciality[]" id="speciality">
									<?php foreach ($speciality as $speciality):?>
									<option value="<?=$speciality->id;?>">
										<?=$speciality->name;?>
									</option>
									<?php endforeach;?>
								</select>

							</div>
						</div>

						<hr class="row">



						<div class="row">
							
							<div class="col-lg-6">
								<div id="statediv" class="input-group" onClick="getlatlong()">
									<label>State/Province <span class="text text-danger">*</span></label> 
									<span class="text text-danger"> <?php echo form_error('state'); ?></span>
									<select class="form-control"
										name="state" id="state">
										<option value="" selected="selected">- - - - - - - Select State - - - - - - -</option>
										<?php foreach ($state as $state):?>
										<option value="<?= $state->id;?>"><?= $state->statename;?></option>
										<?php endforeach;?>
									</select>
								</div>

							</div>

							<div id="citydiv" class="form-group col-xs-6" onClick="getlatlong()">
								<label>City/Area <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('city'); ?></span>
								<select class="form-control"
									name="city" id="city">
									<option value="" selected="selected">-Select-</option>
									<option value=1>United Kingdom (UK)</option>
								</select>
							</div>
							
						</div>
						<!-- /.row -->


						<div class="row">
							<div class="form-group  col-xs-6">
								<label>Zip Code <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('zip'); ?></span>
								<input type="text" class="form-control"
									name="zip" placeholder="Zip Code" value="<?php echo set_value('zip');?>">
							</div>
						</div>

						<hr class="row">

						<div class="row" >
							<div class="form-group  col-xs-12"  onClick="getlatlong()">
								<label>Address Line 1 <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('address1'); ?></span>
								<input type="text"
									class="form-control" name="address1" id="street_address1" placeholder="First Address"
									value="<?php echo set_value('address1');?>">
							</div>
						</div>

						<div class="row"  onClick="getlatlong()" >
							<div class="form-group  col-xs-12">
								<label>Address Line 2</label> <input type="text"
									class="form-control" name="address2" id="street_address2" placeholder="Second Address">
							</div>
						</div>

						<div class="row">
						<div class="form-group col-xs-12" style="display: none" id="mymap">
									<label>Select Place</label>
									<div class="controls">
										<div id="map"></div>
									</div>
								</div>
								</div>	
									
									<div class="row" hidden>
							<div class="form-group  col-xs-6">
								<label>Latitude </label> <input type="text" name="lat" id="lat" class="form-control"
									placeholder="Latitude" 
									>
							</div>
							<div class="form-group  col-xs-6">
								<label>Longitude</label> <input type="text" name="long" id="long" class="form-control"
									placeholder="Longitude">
							</div>
						</div>
						
						
						<div class="row">
							<div class="form-group  col-xs-6">
								<label>Phone No (1) <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('phone'); ?></span>
								<input type="text" name="phone" class="form-control"
									placeholder="Enter Phone" value="<?php echo set_value('phone');?>">
							</div>
							<div class="form-group  col-xs-6">
								<label>Phone No (2)</label> 
								
								<input type="text" name="phone2" class="form-control"
									placeholder="Enter Fax">
							</div>
						</div>
						<div class="row">
						<div class="form-group  col-xs-5">
								<label>Fax</label> <input type="text" name="fax" class="form-control"
									placeholder="Enter Fax">
							</div>
						</div>
						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>Email ID <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('email'); ?></span>
								<input type="text" name="email" class="form-control"
									placeholder="Enter email" value="<?php echo set_value('email');?>">
							</div>
						</div>

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>Website </label> <small>( Don't enter http:/www. eg.
									mysite.com )</small>
									
									<input type="text" name="website" class="form-control"
									placeholder="Enter email">
							</div>
						</div>


						<hr class="row">

						<div class="row">
							<p class="lead">Social Media</p>
							<div class="form-group  col-xs-6">
								<label>Facebook Link</label> <input type="text"
									name="facebook_link" class="form-control" placeholder="Enter email">
							</div>
							<div class="form-group  col-xs-6">
								<label>Twitter Link </label><input type="text"
									name="twitter_link" class="form-control" placeholder="Enter email">
							</div>
						</div>

						<div class="row">
							<div class="form-group  col-xs-6">
								<label>Google Link</label> <input type="text"
									name="google_link" class="form-control" placeholder="Enter email">
							</div>
							<div class="form-group  col-xs-6">
								<label>Linkedin Link </label><input type="text"
									name="linkedin_link" class="form-control" placeholder="Enter email">
							</div>
						</div>

						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>Language Spoken <span class="text text-danger">*</span></label> 
								<span class="text text-danger"> <?php echo form_error('language'); ?></span>
								<input type="text" name="language" class="form-control"
									placeholder="Enter Language Spoken" value="<?php echo set_value('language');?>">
							</div>
						</div>
						<div class="row">
							<div class="form-group  col-xs-8">
							
								
								<label>Payment Methods </label>
<span class="text text-danger"> <?php echo form_error('payment[]'); ?></span>
							 <p class="checkbox">
									<input type="checkbox" name="payment[]" value="Cash">
									Cash
								</p>

								<p class="checkbox">
									<input type="checkbox" name="payment[]" value="Debit Card">
									Debit Card
								</p>
								<p class="checkbox">
									<input type="checkbox" name="payment[]" value="Credit Card">
									Credit Card
								</p>
								<p class="checkbox">
									<input type="checkbox" name="payment[]" value="Check (Bank)">
									Cheque (Bank)
								</p>
 								
							</div>

							<div class="form-group  col-xs-4">
								<label>Free Consultation</label>
								<p class="small">(in Minutes. eg. 20)</p>
								<input type="text" name="consultation" class="form-control " placeholder="Minutes">
							</div>
						</div>

						<hr class="row">

						<div class="row">
							<div class="form-group  col-xs-12">
								<label>About you</label> <small>( Leangth 150 to 1000 words ) <span class="text text-danger">*</span></small>
								<span class="text text-danger"> <?php echo form_error('about'); ?></span>
								<textarea name="about" class="form-control" rows="5"><?php echo set_value('about');?></textarea>
							</div>
						</div>


						<button type="submit" class="btn btn-danger pull-right">Submit
							Profile</button>
					</form>
					<?php }?>
				</div>
			</div>






		</div>


	</div>
</div>
















